﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/Admin.Master" AutoEventWireup="true"
    CodeBehind="RevenueSms.aspx.cs" Inherits="ServerApi.administrator.RevenueSms" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
Thống kê sản lượng SMS
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Script" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <strong>Thống kê sản lượng SMS</strong>
    </div>
    <div>
        <table cellspacing="3">
            <tr>
                <td>
                    So điện thoại:
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtPhone" Width="249px"></asp:TextBox>
                </td>
                <td class="style1">
                </td>
            </tr>
            <tr>
                <td>
                    Command Code
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtCommand" Width="139px"></asp:TextBox>
                </td>
                <td class="style1">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Message</td>
                <td>
                    <asp:TextBox runat="server" ID="txtMessage" Width="291px"></asp:TextBox>
                </td>
                <td class="style1">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Loại đầu số:&nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="ddlTypeShortCode" runat="server" OnSelectedIndexChanged="ddlTypeShortCode_SelectedIndexChanged"
                        AutoPostBack="True">
                    </asp:DropDownList>
                </td>
                <td class="style1">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Đầu số:
                </td>
                <td>
                    <asp:DropDownList ID="ddlShortcode" runat="server" ClientIDMode="Static">
                    </asp:DropDownList>
                </td>
                <td class="style1">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Từ ngày:
                </td>
                <td>
                    <asp:TextBox ID="txtfromdate" runat="server" ClientIDMode="Static"></asp:TextBox>
                    <img alt="" onclick="popUpCalendar(this, document.getElementById('txtfromdate'), 'dd/MM/yyyy')"
                        src="../datepicker/Calendar.gif" />
                </td>
                <td class="style1">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Đến ngày:
                </td>
                <td>
                    <asp:TextBox ID="txttodate" runat="server" ClientIDMode="Static"></asp:TextBox>
                    <img alt="" onclick="popUpCalendar(this, document.getElementById('txttodate'), 'dd/MM/yyyy')"
                        src="../datepicker/Calendar.gif" />
                </td>
                <td class="style1">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click" />&nbsp;&nbsp
                    </td>
            </tr>
        </table>
    </div>
    <div style="width: 100%; text-align: center;">
        <cc1:PagerV2_8 ID="pager1" runat="server" OnCommand="pager1_Command" PageSize="50"
            BackToFirstClause="Trang đầu" BackToPageClause="trở lại trang" GoToLastClause="Trang cuối"
            MaxSmartShortCutCount="0" NextToPageClause="trang tiếp theo" OfClause="của" PageClause="Trang"
            ShowResultClause="Hiện kết quả" CssClass="style2" FirstClause="Trang đầu" GenerateFirstLastSection="True"
            LastClause="Trang cuối" />
            <div><strong>Tổng: <%=count %></strong></div>
        <asp:GridView ID="GrvListAcc" DataKeyNames="moId" Width="100%" runat="server" AutoGenerateColumns="False"
            PageSize="50" CellPadding="4" ForeColor="#333333" GridLines="Vertical" 
            EnableModelValidation="True">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" HorizontalAlign="center" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%=stt++ %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <input type="checkbox" id="chkAll" onclick="CheckUncheckAll('chk[]',this.checked);" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input type="checkbox" id='chk' name="chk[]" value='<%# Eval("moId") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Số điện thoại">
                    <ItemTemplate>
                        <%#Eval("msisdn")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Command Code">
                    <ItemTemplate>
                        <%#Eval("command_code")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Đầu số">
                    <ItemTemplate>
                        <%#Eval("short_code")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung">
                    <ItemTemplate>
                        <%#Eval("message")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thời gian">
                    <ItemTemplate>
                        <%#((DateTime)Eval("request_time")).ToString("dd/MM/yyyy hh:mm:ss") %>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
